package golf;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Store {
	int no;
	String name;
	String owner;
	
	public Store(){}
	public Store(ResultSet rs){
		try {
			setNo(rs.getInt("STORENO"));
			setName(rs.getString("STORENM"));
			setOwner(rs.getString("STOREOWNERNM"));
			
			System.out.println("Store() 생성자 생성 완료!");
		} catch (SQLException e) {
			System.out.println("Store() 생성자 DB오류!");
			e.printStackTrace();
		}
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	
}
